package com.kotlin.mvpdemo.ui.login;

import android.text.TextUtils;

import com.kotlin.mvpdemo.base.BasePresenter;
import com.kotlin.mvpdemo.utils.ToastUtils;

/**
 * author : fang.zhang
 * e-mail : initzf@126.com
 * date   : 2020/6/6
 * desc   :
 */
public class LoginPressenter extends BasePresenter<LoginView> {

    public void login(String name, String pwd) {

        if (TextUtils.isEmpty(name) || TextUtils.isEmpty(pwd)) {
            ToastUtils.showShort("账号或密码不能为空");
            return;
        }
        mView.loginSuccess();
    }
}
